package com.jintian.smart.platform.system.mapper;

import com.jintian.smart.kernel.orm.mapper.IBaseExtMapper;
import com.jintian.smart.base.api.system.entity.DictDataEntity;
import com.jintian.smart.kernel.core.system.DictDataVO;
import org.beetl.sql.mapper.annotation.Mapper;
import org.beetl.sql.mapper.annotation.Param;
import org.beetl.sql.mapper.annotation.SqlResource;

import java.util.Collection;
import java.util.List;

/**
 * 字典数据表 Dao
 */

@Mapper
@SqlResource("system.DictData")
public interface DictDataMapper extends IBaseExtMapper<DictDataEntity> {
    List<DictDataVO> queryByDictId(@Param("dictId") Long dictId);

    List<DictDataVO> selectByDictDataIds(@Param("dictDataIdList") Collection<Long> dictDataIds);

    DictDataEntity selectByDictIdAndValue(@Param("dictId") Long dictId, @Param("dataValue") String dataValue);

    List<DictDataVO> getAll();
}
